#include "log/Logger.h"
#include "thread/Thread.h"
#include <errno.h>


void log() {
	LOG_RAW<<"raw ...";
	LOG_DEBUG<<"debug ...";
	LOG_INFO<<"info ...";
	LOG_WARN<<"warn ...";
	LOG_ERROR<<"error ...";
	// LOG_FATAL<<"fatal ...";
	errno = 13;
	LOG_SYSERROR<<"syserr ...";
	LOG_SYSFATAL<<"sysfatal ...";
}

int main()
{
	Logger::SET_LEVEL(Logger::DEBUG);
	Thread t1([](){ log(); });
	t1.start();
	t1.join();
	// LOG_RAW<<"raw ...";
	// LOG_DEBUG<<"debug ...";
	// LOG_INFO<<"info ...";
	// LOG_WARN<<"warn ...";
	// LOG_ERROR<<"error ...";
	// // LOG_FATAL<<"fatal ...";
	// errno = 13;
	// LOG_SYSERROR<<"syserr ...";
	// LOG_SYSFATAL<<"sysfatal ...";
	return 0;
}
